package com.wei.czz.framework.blog.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import com.wei.czz.common.tool.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * Created by IntelliJ IDEA.
 *
 * @author wei
 * date: 2022-03-01 10:04:45
 * className: BlogStatsEntity 博客统计表实体类
 * version: 1.0
 * description:
 * 	博客统计表
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("sys_blog_stats")
public class BlogStatsEntity extends BaseEntity {

	/**
	 * 博客id
	 */
	@TableId
	private Long blogId;
	/**
	 * 日浏览次数
	 */
	private Integer dayViewNum;
	/**
	 * 月浏览次数
	 */
	private Integer monthViewNum;
	/**
	 * 年浏览次数
	 */
	private Integer yearViewNum;
	/**
	 * 日点赞数
	 */
	private Integer dayLikeNum;
	/**
	 * 月点赞数
	 */
	private Integer monthLikeNum;
	/**
	 * 年点赞数
	 */
	private Integer yearLikeNum;
	/**
	 * 日收藏数
	 */
	private Integer dayCollectNum;
	/**
	 * 月收藏数
	 */
	private Integer monthCollectNum;
	/**
	 * 年收藏数
	 */
	private Integer yearCollectNum;
	/**
	 * 日评论数
	 */
	private Integer dayCommentNum;
	/**
	 * 月评论数
	 */
	private Integer monthCommentNum;
	/**
	 * 年评论数
	 */
	private Integer yearCommentNum;

	public BlogStatsEntity() {
		this.dayViewNum = 0;
		this.monthViewNum = 0;
		this.yearViewNum = 0;

		this.dayLikeNum = 0;
		this.monthLikeNum = 0;
		this.yearLikeNum = 0;

		this.dayCollectNum = 0;
		this.monthCollectNum = 0;
		this.yearCollectNum = 0;

		this.dayCommentNum = 0;
		this.monthCommentNum = 0;
		this.yearCommentNum = 0;
	}
}
